package cn.yedong.org.mapper;

import cn.yedong.org.domain.Shop;
import cn.yedong.basic.mapper.BaseMapper;
import cn.yedong.org.obj.ShopDbj;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yedong
 * @since 2023-02-04
 */
public interface ShopMapper extends BaseMapper<Shop> {
    //根据店铺名和地址查询店铺
    Shop findByNameAndAddress(Shop shop);
    //审核结束修改店铺状态
    void updateState(@Param("state") Integer state,@Param("shopId") Long shopId);
    //获取店铺状态数据
    List<ShopDbj> echart();
}
